package com.JZ.QM.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.JZ.QM.common.utils.PageUtils;
import com.JZ.QM.common.entity.WealthPositionEntity;

import java.util.ArrayList;
import java.util.Map;

/**
 * 
 *
 * @author lyp
 * @email lyp@gmail.com
 * @date 2020-06-14 11:19:36
 */
public interface WealthPositionService extends IService<WealthPositionEntity> {

    PageUtils queryPage(Map<String, Object> params) throws Exception;

    /**
     * 通过财富账号获取持仓列表
     * @param wealthAccountId
     * @return
     */
    ArrayList<WealthPositionEntity> getListByWealthAccountId(Long wealthAccountId);

    /**
     * 获取特定产品的持仓情况
     * @param userId
     * @param accountId
     * @param proId
     * @return
     */
    WealthPositionEntity getPosition(Long userId, Long accountId, Long proId);

}

